package com.example.controller;

import com.example.service.JgCustomCountService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;

/**
 * 监管场所自定义数据导出
 */
@RestController
@RequestMapping("api/jgCustomCount")
public class JgCustomCountController {
    // 引用监管场所自定义查询service
    @Autowired
    public JgCustomCountService jgCustomCountService;

    /**
     * 查询数据
     * @param
     * @param
     * @return
     */
    @ApiOperation(value = "查询数据信息",notes = "查询数据列表信息")
    @RequestMapping(value="findPortInfo",method = RequestMethod.POST)
    private Map<String,Object> findPortInfo(@RequestBody Map map) {
        Map<String,Object> resultMap = jgCustomCountService.findPortInfo(map);
        return resultMap;
    }
    //导出数据
    @ApiOperation(value = "自定义查询数据导出",notes = "自定义查询数据导出")
    @RequestMapping(value="/export",method = RequestMethod.POST)
    private Map<String,Object> export(@RequestBody Map map) {
        Map<String,Object> resultMap = jgCustomCountService.export(map);
        return resultMap;
    }

}
